package com.acsior.hibernate.vo;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.ddfn.impl.hibernate.vo.NomElementVO;

/**
 * Клас, който обслужва
 * 
 * @author <d.kolev@acsior.com>
 */
@Entity
@Table(name = "nom_product_type", uniqueConstraints = @UniqueConstraint(columnNames = "system_name"))
@GeneratorKey(tableName = "nom_product_type")
public class NomProductTypeVO extends NomElementVO {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -7872177568109573131L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "nom_product_status_id", nullable = false)
	private NomProductStatusVO nomProductStatus;

	/**
	 * Конструктор
	 */
	public NomProductTypeVO() {
		super();
	}

	/**
	 * @return nomProductStatus
	 */

	public NomProductStatusVO getNomProductStatus() {
		return this.nomProductStatus;
	}

	/**
	 * @param nomProductStatus
	 */
	public void setNomProductStatus(NomProductStatusVO nomProductStatus) {
		this.nomProductStatus = nomProductStatus;
	}

}
